;Challange System by MentaL


;-- Resets

[@reset]
#IF
checknamelist battlesystem/room1.txt
#ACT
delnamelist battlesystem/room1.txt
goto @main0
BREAK

#IF
checknamelist battlesystem/room2.txt
#ACT
delnamelist battlesystem/room2.txt
goto @main0
BREAK

#IF
checknamelist battlesystem/room3.txt
#ACT
delnamelist battlesystem/room3.txt
goto @main0
BREAK

#IF
checknamelist battlesystem/room4.txt
#ACT
delnamelist battlesystem/room4.txt
goto @main0
BREAK

#IF
checknamelist battlesystem/room5.txt
#ACT
delnamelist battlesystem/room5.txt
goto @main0
BREAK

#IF
checknamelist battlesystem/room6.txt
#ACT
delnamelist battlesystem/room6.txt
goto @main0
BREAK

#IF
checknamelist battlesystem/room7.txt
#ACT
delnamelist battlesystem/room7.txt
goto @main0
BREAK

#IF
checknamelist battlesystem/room8.txt
#ACT
delnamelist battlesystem/room8.txt
goto @main0
BREAK

#IF
checknamelist battlesystem/room9.txt
#ACT
delnamelist battlesystem/room9.txt
goto @main0
BREAK

#IF
checknamelist battlesystem/room10.txt
#ACT
delnamelist battlesystem/room10.txt
goto @main0
BREAK

;;-- Errors

[@error]
I am sorry, but this is a very dangerous place and is only\
open to those who are over level 40.\
<exit/@exit>

[@error1]
As the rules mensioned, i am unable to permit you to enter given\
you have a teleportation device, so please get rid of this first\
before attempting this challange again.\
<exit/@exit>

[@error2]
Sadly, there is one person taking this challange, but dont worry!\
I am sure they will fail just like everybody else!\
<exit/@exit>

;;-- Begin

[@main]
#IF
checknamelist battlesystem/completed.txt
#ACT
goto @complete
BREAK

#IF
checknamelist battlesystem/room10.txt
#ACT
goto @room10
BREAK

#IF
checknamelist battlesystem/room9.txt
#ACT
goto @room9
BREAK

#IF
checknamelist battlesystem/room8.txt
#ACT
goto @room8
BREAK

#IF
checknamelist battlesystem/room7.txt
#ACT
goto @room7
BREAK

#IF
checknamelist battlesystem/room6.txt
#ACT
goto @room6
BREAK

#IF
checknamelist battlesystem/room5.txt
#ACT
goto @room5
BREAK

#IF
checknamelist battlesystem/room4.txt
#ACT
goto @room4
BREAK

#IF
checknamelist battlesystem/room3.txt
#ACT
goto @room3
BREAK

#IF
checknamelist battlesystem/room2.txt
#ACT
goto @room2
BREAK

#IF
checknamelist battlesystem/room1.txt
#ACT
goto @room1
BREAK

#ELSEACT
goto @maincheck

[@maincheck]
#IF
checknamelist battlesystem/FULLYCOMPLETEDwarr.txt
#ACT
goto @finishedrules
BREAK

#IF
checknamelist battlesystem/FULLYCOMPLETEDtao.txt
#ACT
goto @finishedrules
BREAK

#IF
checknamelist battlesystem/FULLYCOMPLETEDwiz.txt
#ACT
goto @finishedrules
BREAK

#ELSEACT
goto @main0

[@main0]
Welcome to the RaGEZONE Battle chamber, we will be testing\
your skills and determination in this system, in where you\
will require to use every last technique you have learned.\
\
\
Do you accept?: <YES/@begin> || <NO/@exit>

[@begin]
#IF
checklevelex > 34
#ACT
goto @start
#ELSEACT
goto @error

[@start]
<Here are the rules!>\
\
Once you click begin we will teleport you into a room full\
of monsters, and you must kill every last monster and click\
and chat to the NPC, as you progress the mobs will be harder\
and harder, note that you will not be allowed to take any\
sort of teleportation device. Also we only permit one person\
at a time to enter, so when your ready! click begin!!!\
\
<BEGIN CHALLANGE/@start1> || <EXIT CHALLANGE/@exit>

[@start1]
#IF
checkitem dungeonescape 1
checkitem randomteleport 1
checkitem townteleport 1
checkitem hometeleport 1
#ACT
goto @error1
#ELSEACT
goto @start2

[@start2]
#IF
checkhum rzbattle1 1
#ACT
goto @error2
#ELSEACT
goto @classcheck

[@classcheck]
#IF
checkjob wizard
#ACT
goto @wizlimit
break

#IF
checkjob taoist
#ACT
goto @taoistlimit
break

#IF
checkjob warrior
#ACT
goto @warriorlimit
break

[@warriorlimit]
#ACT
timerecall 45
addnamelist battlesystem/room1.txt
monclear rzbattle1
Param1 rzbattle1
Param2 20
Param3 20
MonGen Scarecrow 10 10
MonGen Oma 10 10
mapmove rzbattle1

[@taoistlimit]
#ACT
timerecall 60
addnamelist battlesystem/room1.txt
monclear rzbattle1
Param1 rzbattle1
Param2 20
Param3 20
MonGen Scarecrow 10 10
MonGen Oma 10 10
mapmove rzbattle1

[@wizlimit]
#ACT
timerecall 30
addnamelist battlesystem/room1.txt
monclear rzbattle1
Param1 rzbattle1
Param2 20
Param3 20
MonGen Scarecrow 10 10
MonGen Oma 10 10
mapmove rzbattle1


; -- Rooms failed

[@room1]
<Room 1 Detected>:\
\
It seems you have failed at room one, which for a level 40\
is very very embarrising i can tell you, but i will keep this\
between you and I, unlucky sir, how would you like another go?
\
<Yes Please/@reset> || <No Thanks/@exit>

[@room2]
<Room 2 Detected>:\
\
It seems you have failed your challange, would you like to\
attempt again?\
\
<Yes Please/@reset> || <No Thanks/@exit>


[@room3]
<Room 3 Detected>:\
\
It seems you have failed your challange, would you like to\
attempt again?\
\
<Yes Please/@reset> || <No Thanks/@exit>

[@room4]
<Room 4 Detected>:\
\
It seems you have failed your challange, would you like to\
attempt again?\
\
<Yes Please/@reset> || <No Thanks/@exit>

[@room5]
<Room 5 Detected>:\
\
It seems you have failed your challange, would you like to\
attempt again?\
\
<Yes Please/@reset> || <No Thanks/@exit>

[@room6]
<Room 6 Detected>:\
\
It seems you have failed your challange, would you like to\
attempt again?\
\
<Yes Please/@reset> || <No Thanks/@exit>

[@room7]
<Room 7 Detected>:\
\
It seems you have failed your challange, would you like to\
attempt again?\
\
<Yes Please/@reset> || <No Thanks/@exit>

[@room8]
<Room 8 Detected>:\
\
It seems you have failed your challange, would you like to\
attempt again?\
\
<Yes Please/@reset> || <No Thanks/@exit>

[@room9]
<Room 9 Detected>:\
\
It seems you have failed your challange, would you like to\
attempt again?\
\
<Yes Please/@reset> || <No Thanks/@exit>

[@room10]
<Room 10 Detected>:\
\
So close! you made it ever so close, sadly, you are not good\
enough, would you like to try again?\
\
<Yes Please/@reset> || <No Thanks/@exit>


;- Completed

[@complete]
#IF
checknamelist battlesystem/FULLYCOMPLETEDwarr.txt
#ACT
goto @finishedrules
BREAK

#IF
checknamelist battlesystem/FULLYCOMPLETEDtao.txt
#ACT
goto @finishedrules
BREAK

#IF
checknamelist battlesystem/FULLYCOMPLETEDwiz.txt
#ACT
goto @finishedrules
BREAK

#IF
checknamelist battlesystem/anticheatwarr.txt
#ACT
goto @finishedrules
BREAK

#IF
checknamelist battlesystem/anticheattao.txt
#ACT
goto @finishedrules
BREAK

#IF
checknamelist battlesystem/anticheatwiz.txt
#ACT
goto @finishedrules
BREAK

#ELSEACT
goto @firsttimewin

[@firsttimewin]
<Battle System Complete> - By <$USERNAME>\
\
Well done! You have completed the challange system, you are\
a real player who knows how to use the game to his advantage!\
players such as yourself are very very rare and you have\
a unique tallent, so well done and come claim your prize!\
\
<Claim Your prize!/@claimprize> || <Ill wait/@exit>

[@claimprize]
#IF
checkjob wizard
#ACT
delnamelist battlesystem/completed.txt
addnamelist battlesystem/FULLYCOMPLETEDwiz.txt
give goldbarbundle 1
give AdamantineNeck
give MCStone(XL) 1
goto @finishedrules
BREAK

#IF
checkjob taoist
#ACT
delnamelist battlesystem/completed.txt
addnamelist battlesystem/FULLYCOMPLETEDtao.txt
give goldbarbundle 1
give RequiemNeck 1
give TaoStone(XL)
goto @finishedrules
BREAK

#IF
checkjob warrior
#ACT
delnamelist battlesystem/completed.txt
addnamelist battlesystem/FULLYCOMPLETEDwarr.txt
give goldbarbundle 1
give HeroNecklace 1
give DCStone(XL) 1
goto @finishedrules
BREAK

[@finishedrules]
Well done for completing the challange system, but to\
avoid abuse of this system for players who have mastered\
this, we have set a limit to only win the prize once, but\
you may try it again at any time you wish.\
\
<Continue/@main0> || <Exit/@exit>

[@wonagainwarr]
#ACT
delnamelist battlesystem/FULLYCOMPLETEDwarr.txt
addnamelist battlesystem/anticheatwarr.txt
give Benedictionoil 6
give DragonRing 2
give gold 100000
goto @finishedrules

[@wonagainwiz]
#ACT
delnamelist battlesystem/FULLYCOMPLETEDwiz.txt
addnamelist battlesystem/anticheatwiz.txt
give benedictionoil 6
give RubyRing 2
give Gold 100000
goto @finishedrules

[@wonagaintao]
#ACT
delnamelist battlesystem/FULLYCOMPLETEDtao.txt
addnamelist battlesystem/anticheattao.txt
give BenedictionOil 6
give PlatinumRing 2
give Gold 100000
goto @finishedrules